<!DOCTYPE HTML>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="stylesheet" href="../css/currency/bootstrap.css"/>
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css"/>
    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="../css/recipe.css"/>

    <title>广告播放记录报表</title>
</head>

<body>
<nav class="breadcrumb" style="margin-bottom:0px"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span
        class="c-gray en">&gt;</span> 基础功能 <span class="c-gray en">&gt;</span>合同管理
    <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="pd-20" id="contract">
    <div class="text-c" id="contractList">
        <form search-form>
            <!-- TODO 根据业务需要修改搜索内容-->
            <input type="text" class="input-text" style="width:260px" v-model="condition.advCode" id="advCode"
                   placeholder="广告编号">
            <input id="hiddenText" type="text" style="display:none" class="input-text">
            <span>
					<input type="text" v-model="condition.startDate" id="startDate-d" name="startDate"
                           @focus="changeTime('startDate-d')"
                           onfocus="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                           class="input-text Wdate" style="width:130px;" placeholder="播放时间开始">-
					<input type="text" v-model="condition.overDate" id="overDate-d" name="overDate"
                           @focus="changeTime('overDate-d')"
                           onfocus="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                           class="input-text Wdate" style="width:130px;" placeholder="播放时间结束">
            </span>
            <div id="selectBtnEnter" class="btn btn-primary" v-on:click="getList('search')">查询</div>
            <a class="btn btn-primary radius addFormula" id="addButton" v-on:click="importPostion">导入</a>
            <a class="btn btn-primary radius addFormula" id="addButtons" v-on:click="tjt">生成统计图</a>
        </form>
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="l mr-5">
                <a class="btn btn-primary radius addFormula" id="toNoBtn" v-on:click="deleteAll()">批量删除</a>
            </span>
            <span class="r" v-cloak>
	            	共有数据：{{pageInfo.total}}条
            </span>
        </div>
        <form>
            <table class="table table-border table-bordered table-bg">
                <thead>
                <tr class="text-c">
                    <!--TODO 生成表头-->
                    <td><input type="checkbox" id="all" value="全选" v-model="condition.all" @click="checkAll"></td>
                    <th nowrap="nowrap">图片</th>
                    <th nowrap="nowrap">广告编号</th>
                    <th nowrap="nowrap">广告来源</th>
                    <th nowrap="nowrap">设备编号</th>
                    <th nowrap="nowrap">触发时间</th>
                    <th nowrap="nowrap">播放结束时间</th>
                    <th nowrap="nowrap">触发编号</th>
                    <th nowrap="nowrap">触发性别</th>
                    <th nowrap="nowrap">触发年龄</th>
                    <th nowrap="nowrap">位置编号</th>
                    <th nowrap="nowrap">省</th>
                    <th nowrap="nowrap">市</th>
                    <th nowrap="nowrap">区</th>
                </tr>
                </thead>
                <tbody v-cloak>
                <tr class="text-c" v-for="(item,index) in pageInfo.list">
                    <td><input type="checkbox" :value="item.id" v-model="condition.items" name="id"></td>
                    <td nowrap="nowrap">
                        <span v-if="item.faceImage!=null">
                            <a :href="item.faceImage" target="view_window">
                                <img style="width: 60px;height: 55px;" :src="item.faceImage">
                            </a>
                        </span>
                    </td>
                    <td nowrap="nowrap">{{item.advCode}}</td>
                    <td>
                        <span v-if="item.cameFrom==1">奥森平台</span>
                        <span v-if="item.cameFrom==2">美数平台</span>
                        <span v-if="item.cameFrom==3">百度平台</span>
                        <span v-if="item.cameFrom==4">点屏平台</span>
                        <span v-if="item.cameFrom==5">易售平台</span>
                    </td>
                    <td nowrap="nowrap">{{item.equipmentCode}}</td>

                    <td nowrap="nowrap">{{item.triggerTime}}</td>
                    <td nowrap="nowrap">{{item.playDate}}</td>

                    <td nowrap="nowrap">{{item.triggerCode}}</td>
                    <td nowrap="nowrap">
                        <span v-if="item.sex=='1'">男</span>
                        <span v-if="item.sex=='0'">女</span>
                    </td>
                    <td nowrap="nowrap">{{item.age}}</td>

                    <td nowrap="nowrap">{{item.postionCode}}</td>
                    <td nowrap="nowrap">{{item.province}}</td>
                    <td nowrap="nowrap">{{item.city}}</td>
                    <td nowrap="nowrap">{{item.area}}</td>
                </tr>
                </tbody>
            </table>
        </form>

        <div class="pageBox" v-cloak id="pageBox">
            <div class="pageInfo">显示 <span id="startRow">{{pageInfo.startRow}}</span> 到 <span id="endRow">{{pageInfo.endRow}}条</span>&nbsp;&nbsp;&nbsp;&nbsp;{{pageInfo.pages}}页&nbsp;&nbsp;&nbsp;&nbsp;共
                <span id="total">{{pageInfo.total}}</span> 条
                <select v-model="selectedPageSize" v-on:change="getList('changePageSize')">
                    <option value="5">5</option>
                    <option value="10">10</option>
                    <option value="15">15</option>
                    <option value="20">20</option>
                    <option value="50">50</option>
                </select>
            </div>
            <ul class="pagination" id="pagination"></ul>
        </div>
        <div class="tips" id="noData" align="center" style="display: none">
            无数据
        </div>
    </div>
    <form class="form form-horizontal" enctype="multipart/form-data" id="importPanel" style="display: none"
          enctype="multipart/form-data" method="post">
        <table class="table" border='0' width='100%'>
            <tr>
                <td width="20%" align="right" nowrap="nowrap">
                </td>
                <td width="40%" style="margin-left: 0px">
                </td>
                <td width="40%"></td>
            </tr>
            <tr id="t1">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>合同数据文件：
                    </label>
                </td>
                <td>
                    <input type="file" class="input-text radius" multiple="multiple" name="file"
                           placeholder="请选择导入的数据文件" id="file"/>
                </td>

                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="fileErr!=''">
                            {{fileErr}}
                        </span>
                </td>

            </tr>

            <tr>
                <td width="100%" class="text-r" colspan="3">
                    <a class="btn btn-primary radius f-l ml-50 " style="width: 180px;" id="" v-on:click="importB">导入</a>
                </td>
            </tr>

            <tr>
                <td colspan="3">
                    <div class="f-l ml-50 errMsg error-msg" style="height: 70px;width: 500px">
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>

</html>
<script type="text/javascript" src="../js/common/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="../lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="../js/common/H-ui.js"></script>
<script type="text/javascript" src="../js/common/H-ui.admin.js"></script>
<script type="text/javascript" src="../js/utils/utils.js"></script>
<script type="text/javascript" src="../js/currency/vue.js"></script>
<script type="text/javascript" src="../js/currency/vue-resource.min.js"></script>
<script type="text/javascript" src="../js/currency/base.js"></script>
<script type="text/javascript" src="../js/currency/jqPaginator.js"></script>
<script type="text/javascript" src="../js/playbackRecord.js"></script>
